home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
pc
/
shared.dir
/
01949_Script_Aztec Global Buttons
< prev
next >
Wrap
Text File
|
1995-09-13
|
9KB
|
268 lines
Global gBtn1, gBtn2, gBtn3, gBtn4, gBtn5, gBtn6, gBtn7, gBtn8, gBtn9, ¼
gBtn16, gBtn18, gNewMarker, gTheHelpIsOn, gQuest
on AInitBYLDemo
set gBtn4 = birth(script "aTheatreButton", 32, 140, "SA141000.AIF", "ABegin", "HandCursor")
end
on AInitGlobals
set ScriptNumber = the number of cast "a3StateButton"
set gBtn1 = birth(script "aPullDown", 29, 125, 127, "SA140800.AIF", "DoNothing", "DoNothing", "HandCursor")
set gBtn2 = birth(script ScriptNumber, 30, 134, "SA141700.AIF", "DoNothing", "HandCursor")
set gBtn3 = birth(script ScriptNumber, 31, 137, "SA141600.AIF", "DoNothing", "HandCursor")
set gBtn4 = birth(script ScriptNumber, 32, 140, "SA141000.AIF", "DoNothing", "HandCursor")
set gBtn5 = birth(script ScriptNumber, 33, 143, "SA141100.AIF", "DoNothing", "HandCursor")
set gBtn6 = birth(script 1983, 34, 146, 489, "DoNothing", "DoNothing", "DoNothing",¼
"DoNothing", "HandCursor", "SA141200.AIF", "")
set gBtn7 = birth(script ScriptNumber, 35, 153, "SA141300.AIF", "DoNothing", "HandCursor")
set gBtn8 = birth(script ScriptNumber, 36, 156, "SA010150.AIF", "HelpToggle", "HandCursor")
set gBtn9 = birth(script ScriptNumber, 37, 159, "SA141500.AIF", "Quitit", "HandCursor")
set gQuest = birth(script "aRandomQuestion", 44, 45, 148, 339, 173, 1501, 2, "",¼
"", "", "", 2, "SA143000.AIF")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpFromTheatre
set ScriptNumber = the number of cast "a3StateButton"
set gBtn1 = birth(script "aPullDown", 29, 125, 127, "SA140800.AIF", "AGlossary", "AIndex", "HandCursor")
set gBtn2 = birth(script ScriptNumber, 30, 134, "SA141700.AIF", "DoNothing", "HandCursor")
set gBtn3 = birth(script ScriptNumber, 31, 137, "SA141600.AIF", "DoNothing", "HandCursor")
set gBtn4 = birth(script ScriptNumber, 32, 140, "SA141000.AIF", "ABegin", "HandCursor")
set gBtn5 = birth(script ScriptNumber, 33, 143, "SA141100.AIF", "Table", "HandCursor")
set gBtn6 = birth(script 1983, 34, 146, 489, "AMap", "ATime", "ABasicFacts",¼
"HowDoWeKnow", "HandCursor", "SA141200.AIF", "")
set gBtn7 = birth(script ScriptNumber, 35, 153, "SA141300.AIF", "AGame", "HandCursor")
set gBtn8 = birth(script ScriptNumber, 36, 156, "SA010150.AIF", "HelpToggle", "HandCursor")
set gBtn9 = birth(script ScriptNumber, 37, 159, "SA141500.AIF", "Quitit", "HandCursor")
SwitchList (gQuest, 2)
end
on AGlobalsSetUp
setNewFunctions (gBtn1, "AGlossary", "AIndex")
setNewFunction (gBtn4, "ABegin")
setNewFunction (gBtn5, "Table")
setNewFunctions (gBtn6, "AMap", "ATime", "ABasicFacts", "HowDoWeKnow")
setNewFunction (gBtn7, "AGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpPan
setNewFunctions (gBtn1, "AGlossary", "AIndex")
setNewFunction (gBtn4, "DoNothing")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "AMap", "ATime", "ABasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "AGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpGlossary
setNewFunctions (gBtn1, "DoNothing", "AIndex")
setNewFunction (gBtn2, "ABegin")
setNewFunction (gBtn3, "AIndex")
setNewFunction (gBtn4, "ABegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "AMap", "ATime", "ABasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "AGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpIndex
setNewFunctions (gBtn1, "AGlossary", "DoNothing")
setNewFunction (gBtn2, "AGlossary")
setNewFunction (gBtn3, "ABegin")
setNewFunction (gBtn4, "ABegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "AMap", "ATime", "ABasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "AGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpGame
setNewFunctions (gBtn1, "AGlossary", "AIndex")
setNewFunction (gBtn4, "ABegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "AMap", "ATime", "ABasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "DoNothing")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpMap
setNewFunctions (gBtn1, "AGlossary", "AIndex")
setNewFunction (gBtn4, "ABegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "ResetAMaps", "ATime", "ABasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "AGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpTime
setNewFunctions (gBtn1, "AGlossary", "AIndex")
setNewFunction (gBtn4, "ABegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "AMap", "DoNothing", "ABasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "AGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalsSetUpBF
setNewFunctions (gBtn1, "AGlossary", "AIndex")
setNewFunction (gBtn4, "ABegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "AMap", "ATime", "DoNothing", "HowDoWeKnowCross")
setNewFunction (gBtn7, "AGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 2)
end
on AGlobalRollover
RolloverJob(gQuest)
if (the MouseV < 250) then
if hilightPullDown (gBtn1) then
return true
else
if ObjectP(gBtn16) then
if hilight (gBtn16) then
return true
else
if ObjectP(gBtn18) then
if hilight (gBtn18) then
return true
end if
end if
end if
end if
end if
else
if rollover(38) then
if gTheHelpIsOn = 1 then
puppetsound "SA142100.AIF"
updatestage
repeat while rollover(38)
nothing
end repeat
end if
else
if hilight (gBtn2) then
return true
else
if hilight (gBtn3) then
return true
else
if hilight (gBtn4) then
return true
else
if hilight (gBtn5) then
return true
else
if hilight (gBtn6) then
return true
else
if hilight (gBtn7) then
return true
else
if hilight (gBtn8) then
return true
else
if hilight (gBtn9) then
return true
else
return false
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end
on AGlobalRollover2
RolloverJob(gQuest)
if (the MouseV < 250) then
if hilightPullDown (gBtn1) then
return true
else
if ObjectP(gBtn16) then
if hilight (gBtn16) then
return true
else
if ObjectP(gBtn18) then
if hilight (gBtn18) then
return true
end if
end if
end if
end if
end if
else
if rollover(38) then
if gTheHelpIsOn = 1 then
puppetsound "SA142100.AIF"
updatestage
repeat while rollover(38)
nothing
end repeat
end if
else
if donthilight (gBtn2) then
return true
else
if donthilight (gBtn3) then
return true
else
if hilight (gBtn4) then
return true
else
if hilight (gBtn5) then
return true
else
if hilight (gBtn6) then
return true
else
if hilight (gBtn7) then
return true
else
if hilight (gBtn8) then
return true
else
if hilight (gBtn9) then
return true
else
return false
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end
on InitSoundsA
setnewsound (gBtn1, "SA140800.AIF")
setnewsound (gBtn2, "SA141700.AIF")
setnewsound (gBtn3, "SA141600.AIF")
setnewsound (gBtn4, "SA141000.AIF")
setnewsound (gBtn5, "SA141100.AIF")
setnewsound (gBtn6, "SA141200.AIF")
setnewsound (gBtn7, "SA141300.AIF")
setnewsound (gBtn8, "SA010150.AIF")
setnewsound (gBtn9, "SA141500.AIF")
setnewsound (gQuest, "SA143000.AIF")
end